package com.heima.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.admin.service.AdminChannelService;
import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminChannelServiceImpl implements AdminChannelService {
    @Autowired
    private IWemediaClient wemediaClient;
    @Override
    public ResponseResult saveChannel(WmChannel wmChannel) {
        return wemediaClient.saveChannel(wmChannel);
    }
    @Override
    public ResponseResult deleteChannel(Integer id) {
        return wemediaClient.deleteChannel(id);
    }
    @Override
    public ResponseResult updateChannel(WmChannel wmChannel) {
        return wemediaClient.updateChannel(wmChannel);
    }
    @Override
    public ResponseResult selectChannels(ChannelDto dto) {
        return wemediaClient.selectChannels(dto);
    }
}
